package com.qiall.boot.fileservice.data.mapper;

import com.qiall.boot.fileservice.data.eitity.FileInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FileInfoMapper {
    void insert(FileInfo fileInfo);

    void update(FileInfo fileInfo);

    void delete(@Param("id") Integer id);

    List<FileInfo> getByDirectId(@Param("id") Integer id);

    Integer selectMaxId();

    FileInfo select(@Param("id") Integer id);

    List<FileInfo> selectByUserIdFileNameAndDirId(@Param("uploaderId")Integer uploaderId,@Param("fileName")String fileName,@Param("dirId")Integer dirId);
}
